<?php
session_cache_expire(999999999);
if(!isset($_SESSION)) 
	{ 
		session_start(); 
	}

if(isset($_SESSION['lang']))
			$lang = $_SESSION['lang'];	
if (empty($lang) || $lang == "EN") {
	$value = "../value/value_en.php";
} else if($lang == "VN") {
	$value = "../value/value_vn.php";
}
else {
	$value = "../value/value_kr.php";
}
include($value);

$id=$_REQUEST["id"];

include '../operations/connection.php';


$result = mysql_query("SELECT c.* FROM contract_warranty_detail c WHERE c.id='$id' AND c.isDelete=0; ");

$r = mysql_fetch_array($result);

?>
<input type="hidden" name="editid_contractw" id="editid_contractw" value="<?=$id?>" />
					<table style="width:100%; pediting: 10px 0 0 10px;">
							<tr>
								<td class="tdfirst" style="width: 100px"><?=$l_name_contractwarranty1?></td>
								<td style="width: 100px">
											<input type="text" size="30" name="editname1" id="editname1" value="<?=$r['name']?>" style="width: 185px;height: 24px; border: 1px solid #c4c0c9;font-size: 12px;line-height: 24px;" />
								</td>
							</tr>
							<tr>
								<td class="tdfirst" style="width: 100px"><?=$l_startDay?></td>
								<td style="width: 100px">
											<input type="text" size="30" name="editstartDay1" id="editstartDay1" value="<?=$r['startDay']?>" style="width: 185px;height: 24px; border: 1px solid #c4c0c9;font-size: 12px;line-height: 24px;" />
								</td>
							</tr>
							<tr>
								<td class="tdfirst" style="width: 100px"><?=$l_endDay?></td>
								<td style="width: 100px">
											<input type="text" size="30" name="editendDay1" id="editendDay1" value="<?=$r['endDay']?>" style="width: 185px;height: 24px; border: 1px solid #c4c0c9;font-size: 12px;line-height: 24px;" />
								</td>
							</tr>
							<tr>
								<td class="tdfirst" style="width: 100px"><?=$l_totalValue_contractwarranty1?></td>
								<td style="width: 100px">
											<input type="text" size="30" name="editprice1" id="editprice1" value="<?=$r['price']?>" style="width: 185px;height: 24px; border: 1px solid #c4c0c9;font-size: 12px;line-height: 24px;" />
								</td>
							</tr>
							
							<tr>
								<td class="tdfirst" style="width: 100px"><?=$l_nameCompany_contractwarranty?></td>
								<td style="width: 100px">
											<input type="text" size="30" name="editcompany1" id="editcompany1" value="<?=$r['company']?>" style="width: 185px;height: 24px; border: 1px solid #c4c0c9;font-size: 12px;line-height: 24px;" />
								</td>
							</tr>				
							
							<tr>
								<td class="tdfirst" style="width: 100px"><?=$l_note?></td>
								<td style="width: 100px">
											<input type="text" size="30" name="editnote1" id="editnote1" value="<?=$r['note']?>" style="width: 185px;height: 24px; border: 1px solid #c4c0c9;font-size: 12px;line-height: 24px;" />
								</td>
							</tr>
							
					</table>
<input type="hidden"  name="editidcontractw" id="editidcontractw" value="" />
<?php mysql_close($connection);?>